﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheatreManagementSystem
{
    public class GoldCustomer : Customer
    {
        const decimal discount = 15;

        public GoldCustomer(string firstName,string lastName, string telephoneNumber)
            : base(150, firstName, lastName, telephoneNumber)
        {

        }

        public override decimal GetDiscount()
        {
            
                if (discount / 100 + attendedPerformancesCount/1000m < 0.9m)
                {
                    return discount / 100 + attendedPerformancesCount / 1000m;
                }
                else
                {
                    return 0.9m;
                }
           
        }

        public override bool IsThresholdReached()
        {
            return false;
        }

    }
}
